package com.cold.common.domain;

import com.cold.common.annotation.Excel;
import com.cold.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 报警消息对象 cc_alert_message
 * 
 * @author cold
 * @date 2024-02-29
 */
public class AlertMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息id */
    private Long id;

    /** 设备代码 */
    @Excel(name = "设备代码")
    private String deviceCode;

    /** $column.columnComment */
    @Excel(name = "主机名称", readConverterExp = "$column.readConverterExp()")
    private String hostName;

    /**主机类型*/
    private Long hostType;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String areaName;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String companyName;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 主机id */
    @Excel(name = "主机id")
    private Long hostId;

    /** 区域id */
    @Excel(name = "区域id")
    private Long areaId;

    /** 公司id */
    @Excel(name = "公司id")
    private Long companyId;

    /** 温度 */
    @Excel(name = "温度")
    private Long tem;

    /** 湿度 */
    @Excel(name = "湿度")
    private Long hum;

    /** 经度 */
    @Excel(name = "经度")
    private String lon;

    /** 纬度 */
    @Excel(name = "纬度")
    private String lat;

    /** 最高温 */
    @Excel(name = "最高温")
    private Long maxTem;

    /** 最低温 */
    @Excel(name = "最低温")
    private Long minTem;

    /** 最大湿度 */
    @Excel(name = "最大湿度")
    private Long maxHum;

    /** 最小湿度 */
    @Excel(name = "最小湿度")
    private Long minHum;

    /** 温度报警 0 正常 1 高温 -1 低温 */
    @Excel(name = "温度报警 0 正常 1 高温 -1 低温")
    private Long alertTem;

    /** 湿度报警 0 正常 1 湿度高 -1 湿度低 */
    @Excel(name = "湿度报警 0 正常 1 湿度高 -1 湿度低")
    private Long alertHum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;


    private String deviceStatus;

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceCode(String deviceCode) 
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode() 
    {
        return deviceCode;
    }
    public void setHostName(String hostName) 
    {
        this.hostName = hostName;
    }

    public String getHostName() 
    {
        return hostName;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setCompanyName(String companyName) 
    {
        this.companyName = companyName;
    }

    public String getCompanyName() 
    {
        return companyName;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setHostId(Long hostId) 
    {
        this.hostId = hostId;
    }

    public Long getHostId() 
    {
        return hostId;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setTem(Long tem) 
    {
        this.tem = tem;
    }

    public Long getTem() 
    {
        return tem;
    }
    public void setHum(Long hum) 
    {
        this.hum = hum;
    }

    public Long getHum() 
    {
        return hum;
    }

    public void setMaxTem(Long maxTem) 
    {
        this.maxTem = maxTem;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public Long getMaxTem()
    {
        return maxTem;
    }
    public void setMinTem(Long minTem) 
    {
        this.minTem = minTem;
    }

    public Long getMinTem() 
    {
        return minTem;
    }
    public void setMaxHum(Long maxHum) 
    {
        this.maxHum = maxHum;
    }

    public Long getMaxHum() 
    {
        return maxHum;
    }
    public void setMinHum(Long minHum) 
    {
        this.minHum = minHum;
    }

    public Long getMinHum() 
    {
        return minHum;
    }
    public void setAlertTem(Long alertTem) 
    {
        this.alertTem = alertTem;
    }

    public Long getAlertTem() 
    {
        return alertTem;
    }
    public void setAlertHum(Long alertHum) 
    {
        this.alertHum = alertHum;
    }

    public Long getAlertHum() 
    {
        return alertHum;
    }

    public Long getHostType() {
        return hostType;
    }

    public void setHostType(Long hostType) {
        this.hostType = hostType;
    }

    public String getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(String deviceStateName) {
        this.deviceStatus = deviceStateName;
    }

    @Override
    public String toString() {
        return "AlertMessage{" +
                "id=" + id +
                ", deviceCode='" + deviceCode + '\'' +
                ", hostName='" + hostName + '\'' +
                ", hostType=" + hostType +
                ", areaName='" + areaName + '\'' +
                ", companyName='" + companyName + '\'' +
                ", deviceId=" + deviceId +
                ", hostId=" + hostId +
                ", areaId=" + areaId +
                ", companyId=" + companyId +
                ", tem=" + tem +
                ", hum=" + hum +
                ", lon='" + lon + '\'' +
                ", lat='" + lat + '\'' +
                ", maxTem=" + maxTem +
                ", minTem=" + minTem +
                ", maxHum=" + maxHum +
                ", minHum=" + minHum +
                ", alertTem=" + alertTem +
                ", alertHum=" + alertHum +
                ", sendTime=" + sendTime +
                ", deviceStatus=" + deviceStatus +
                '}';
    }
}
